package nix.mall.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 展示登陆注册页面Controller
 */
@Controller
public class PageController {

	@RequestMapping("/sso/register.html")
	public String showRegister() {
		return "register";
	}
	
	@RequestMapping("/sso/login.html")
	public String showLogin(String url, Model model) {
		 model.addAttribute("redirect", url);
		return "login";
	}
}
